home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Extension Shell ƒ / Extension.make < prev    next >
Encoding:
Text File  |  1996-06-15  |  1.3 KB  |  51 lines  |  [TEXT/MPS ]

  1. #    File:        Extension.make
  2. #   Target:     Extension
  3. #   Sources:    Extension.a Extension.c Extension.r
  4. #   Created:    Wednesday, Nov. 11, 1992 6:42:32 PM
  5. #
  6. #    Makefile for a printing extension.
  7. #    
  8. #    Dave Hersey
  9. #    Apple Developer Technical Support
  10. #
  11. #    12/01/92 - dmh - Created.
  12. #     4/26/93 - dmh - Updated to use recommended approach to
  13. #                     global data initialization.
  14. #     9/05/93 - dmh - Updated for b2.
  15. #   12/18/93 - dmh - Updated for b3.
  16. #    8/24/94 - dmh - Finalized.
  17. #     6/14/96 - cn  - Updated to support MPW Pro #19.
  18.  
  19. #    Alias to the path for the GX library and interface files.
  20.  
  21. INTPATH = "{CIncludes}"
  22.  
  23. #    Creator type we'll use:
  24.  
  25. kCreator = 'GExt'
  26.  
  27.  
  28. OBJECTS = Extension.a.o Extension.c.o
  29. AsmOptions        = -sym off -i {INTPATH} -case obj
  30. CompileOptions    = -opt full -d applec -b2 -r -i {INTPATH}
  31.  
  32. Extension.a.o ƒ Extension.make Extension.a
  33.      Asm {AsmOptions} Extension.a
  34. Extension.c.o ƒ Extension.make Extension.c
  35.      SC {CompileOptions} Extension.c
  36.  
  37. Extension ƒƒ Extension.make Extension.r {OBJECTS}
  38.     Link    -ra =resSysHeap,resPurgeable    ∂
  39.             -t 'pext'                        ∂
  40.             -c {kCreator}                    ∂
  41.             -rt pext=0                        ∂
  42.             -sg SEGS                        ∂
  43.             -m EntryPoint                    ∂
  44.             {OBJECTS}                        ∂
  45.             "{Libraries}MacRuntime.o"        ∂
  46. #            "{Libraries}Interface.o"        ∂
  47. #            "{CLibraries}StdClib.o"            ∂
  48.             -o Extension;
  49.     SetFile Extension -a iB;
  50.     Rez -i {INTPATH} -rd -o Extension Extension.r -append 
  51.